home *** CD-ROM | disk | FTP | other *** search
- Path: pita.cs.huji.ac.il!musya
- Newsgroups: comp.lang.c++
- Subject: function behaving like constructors
- Message-ID: <4g01in$49o@shum.cc.huji.ac.il>
- From: musya@pita.cs.huji.ac.il (Michael Hoichman)
- Date: 15 Feb 1996 19:29:27 GMT
- Distribution: world
- Organization: Hebrew University of Jerusalem, Israel
- NNTP-Posting-Host: cs4.cs.huji.ac.il
- Dnas-Posting-Host: pita.cs.huji.ac.il
-
- I have a tree of classes which write (every one) their data to a file.
- I would like every class to write its own data and in addition the data of
- all its ancestors. Actually the behavior I'm looking for is the one of
- constructors. How may I do that in using an elegant way?
-
- Please, e-mail: musya@cs.huji.ac.il
-
- P.S.: I am using Watcom C++ 10.5 compiler (if it is relevant)
-
-